package com.aaa.demo11102;

/**
 * @author 荆豪峰
 * @version 1.0
 */
public class Test11104 {
    public static void main(String[] args) throws InterruptedException {
        DemoPriority d1= new DemoPriority();
        DemoPriority d2= new DemoPriority();
        d1.start();
        d2.start();
        d1.setPriority(1);
        d2.setPriority(10);

    }
}
class DemoPriority extends Thread{
    @Override
    public void run() {
        for (int i = 0; i < 20;i++) {
            System.out.println(Thread.currentThread().getName() + "==="+i);
}
    }
}